import request from '@/utils/request'

// 创建图斑检查审批
export function createTbCheck(data) {
  return request({
    url: '/bpm/tb-check/create',
    method: 'post',
    data: data
  })
}

// 更新图斑检查审批
export function updateTbCheck(data) {
  return request({
    url: '/bpm/tb-check/update',
    method: 'put',
    data: data
  })
}

// 删除图斑检查审批
export function deleteTbCheck(id) {
  return request({
    url: '/bpm/tb-check/delete?id=' + id,
    method: 'delete'
  })
}

// 获得图斑检查审批
export function getTbCheck(id) {
  return request({
    url: '/bpm/tb-check/get?id=' + id,
    method: 'get'
  })
}

// 获得图斑检查审批分页
export function getTbCheckPage(query) {
  return request({
    url: '/bpm/tb-check/page',
    method: 'get',
    params: query
  })
}

// 导出图斑检查审批 Excel
export function exportTbCheckExcel(query) {
  return request({
    url: '/bpm/tb-check/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
